home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 2: Applications
/
Linux Cubed Series 2 - Applications.iso
/
database
/
postgres
/
appgen-0.2-a
/
appgen-0
/
AppGEN
/
src
/
lib
/
itoa.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-07-10
|
302 b
|
20 lines
#include <stdlib.h>
#include <stdio.h>
char *ag_itoa(char *buf, int value)
{
int a;
for (a=0; a<64; a++) buf[a]=0;
sprintf(buf,"%d",value);
return(buf);
}
char *ag_sprintf(char *buf, char *format, int value)
{
int a;
for (a=0; a<64; a++) buf[a]=0;
sprintf(buf,format,value);
return(buf);
}